<div id="fullBg" class="fullBg none"></div>
<div id="detail_category_dialog" class="dialog adddialog none" style="margin-top: -170px; margin-left: -325px;">
	<div class="dialogTitle">编辑商品类别</div>
	<button class="closeDiv">×</button>
	<div class="dialog_content" style="height: auto; min-height: 100px; max-height: 270px; overflow-y: scroll;">
		<div id="templateListBody"></div>
		<input type="hidden" name="bulkstockCategoryId" id="bulkstockCategoryId" />
		<script type="text/template" id="templateListTpl">

			{@each datas as it}
			<div class="first_line_style" id="categoryId" commodityCategoryId="${it.commodityCategoryId}">
				<span class="f14 ad_position">
						商品类别名称：<input type="text" class="categoryName" name="categoryName" value="${it.categoryName}" />
				</span>
			</div>
			<div class="first_line_style">
				<span class="f14 ad_position">
					是否保理业务：<select val="${it.isFactoring}" name="isFactoring"><option value="false">否</option><option value="true">是</option></select>
				</span>
			</div>
			{@each it.templates as item,index}
			<div templateId=${item.templateId} class="materials">
				<div style="display: inline-block">
					<label class="newsTitle">融资所需材料：</label>
					<input class="material" type="text" id="templateName" placeholder="例如：商品质检证明" value="${item.templateName}" />
				</div>

				<div style="display: inline-block">
					<label for="" class="isUpload">是否必须上传：</label>
					{@if item.checkedRequired===1}
					<input type="radio" class="checkedRequired" name="checkedRequired${index}" value="1" checked="checked" style="width: auto; height: auto;vertical-align: middle;" />是
					<input type="radio" class="checkedRequired" name="checkedRequired${index}" value="0" style="width: auto; height: auto; margin-left: 20px;vertical-align: middle;" />否 {@else if item.checkedRequired===0}
					<input type="radio" class="checkedRequired" name="checkedRequired${index}" value="1" style="width: auto; height: auto;vertical-align: middle;" />是
					<input type="radio" class="checkedRequired" name="checkedRequired${index}" value="0" checked="checked" style="width: auto; height: auto; margin-left: 20px;vertical-align: middle;" />否 {@/if}
					<span class="table_bar">| </span>
					<span class="delete">删除 </span>
				</div>
			</div>
			{@/each} {@/each}
		</script>

		<hr style="border:1px dotted #E1E1E1;margin-top: 16px;" class="hr" />
		<div>
			<a class="add_material"></a>
		</div>
	</div>
	<div class="footerBtn">
		<div id="sureUpdFirst" class="dialogBtn dialogHandlerBtn">确定</div>
		<div class="dialogBtn dialogCancelBtn">取消</div>
	</div>
</div>